package io.datajek.springbasics.movierecommendersystem.lesson8;



import io.datajek.springbasics.movierecommendersystem.lesson5.Filter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component("CBF")
public class ContentBasedFilter implements Filter {

    public ContentBasedFilter(){
        super();
        System.out.println("content-based filter constructor called");
    }

   // @Autowired
    //@Qualifier("contentBasedFilter")
   // public void setFilter(Filter filter){

   // }

    public String[] getRecommendations(String movie) {

        return new String[] {"Happy Feet","Ice Age","Shark Tale"};
    }
}
